package cn.com.idmy.id.segment.bus;

import cn.com.idmy.id.segment.SegmentBuffer;
import cn.com.idmy.id.service.LeafService;
import lombok.Data;

/**
 * 填充segment事件
 */
@Data
public class FillSegmentEvent {
    /**
     * 段缓存
     */
    private SegmentBuffer segmentBuffer;
    /**
     * 节点信息相关服务
     */
    private LeafService leafService;
    /**
     * ???
     */
    private int num;
    /**
     * 业务主键
     */
    private String tag;

    public FillSegmentEvent(SegmentBuffer segmentBuffer, LeafService leafService, int num, String tag) {
        this.segmentBuffer = segmentBuffer;
        this.leafService = leafService;
        this.num = num;
        this.tag = tag;
    }
}
